package com.example.appfighter.evento;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class EventoDBHelper extends SQLiteOpenHelper {
	private String scriptCreate;

	// cria o banco
	public EventoDBHelper(Context ctx, String nomeBd, int versaoBanco,
			String scriptCreate) {

		super(ctx, nomeBd, null, versaoBanco);
		this.scriptCreate = scriptCreate;
	}

	// cria o banco de dados
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(scriptCreate);
	}

	// atualiza o banco de dados
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
	}
}
